import java.util.Scanner;

/*
       调用方法建立输入存储与输出(存储暂时无法完成12.2)
 */
public class MothodTest02 {
    public static void main(String[] args) {
        for (int i = 0; i < 1000000000; i++) {
            System.out.println("请输入姓名:");
            System.out.println("(输入0可以结束录入)");
            Scanner sc = new Scanner(System.in);
            String name = sc.nextLine();
            if (name == "0") {
                break;
            }
            enter(name, i);

        }
    }


    public static void enter(String name, int i) {
        String[] arr = new String[1000000000];
        arr[i] = name;

    }
}